package net.csdn.business.common.domain.request.mirror;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @program: openatom
 * @description: 用户token新增
 * @author: zhangyl
 * @create: 2024-07-18 10:35
 **/

@Data
@NoArgsConstructor
@AllArgsConstructor
public class MirrorUserTokenDTO {


    @NotBlank(message = "token不能为空")
    private String token;

    private String username;

    @NotBlank(message = "userId不能为空")
    private String userId;

    @NotBlank(message = "thirdUsername不能为空")
    private String thirdUsername;

    @NotNull(message = "type不能为空")
    @Min(value = 0, message = "type不合法")
    @Max(value = 1, message = "type不合法")
    private Integer type;
}
